package com.zx.beans;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

/*
    编号
    用户名
    密码
    年龄
    邮箱
    头像
    出生日期
    .....

    添加日期
    备注  1  2

 */

public class User {
    private int id;
    private String username;
    private String password;
    private double sal;

    private Date birthday;

    private List<String> likess;

    private Group group;

    private int aaa;
    private String address;



    private int age3;


    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public User(int id, String username, String password) {

        this.id = id;
        this.username = username;
        this.password = password;
    }

    public User() {
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }


    public List<String> getLikess() {
        return likess;
    }

    public void setLikess(List<String> likess) {
        this.likess = likess;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sal=" + sal +
                ", birthday=" + birthday +
                ", likess=" + likess +
                ", group=" + group +
                '}';
    }
}
